package com.pw.study.gmallpublisher.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.pw.study.gmallpublisher.dao.ESDao;
import com.pw.study.gmallpublisher.service.ESService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

@Service
public class ESServiceImpl implements ESService {
    @Autowired
    ESDao esDao;

    @Override
    public JSONObject getSaleDetail(String date, Integer startpage, Integer size, String keyword) throws IOException {
        System.out.println("开始执行业务流程之前....");

        JSONObject saleDetail = esDao.getSaleDetail(date, startpage, size, keyword);

        System.out.println("开始执行业务流程之后....");

        return saleDetail;
    }
}
